"""
Around4

def turn_right():
    turn_left()
    turn_left()
    turn_left()

def go_around():
    while not object_here():
        if wall_in_front():
            turn_left()
        if right_is_clear():
            turn_right()
        move()

def one_circle():
    put()
    move()
    if object_here():
        take()
        done()

def smart_turn():
    if right_is_clear():
        turn_right()
    if wall_in_front():
        turn_left


def turn_right():
    turn_left()
    turn_left()
    turn_left()
def go_around():
    while not object_here():
        if wall_in_front():
            turn_left()
        if right_is_clear():
            turn_right()
        move()
def smart_turn():
    if right_is_clear():
        turn_right()
    while wall_in_front():
          turn_left()

def one_circle():
    put()
    while True:
        smart_turn()
        move()
        if object_here():
            take()
            done()
            break



one_circle()



## Center2
def turn_around():
    turn_left()
    turn_left()

def turn_right():
    turn_left()
    turn_left()
    turn_left()

def length():
    steps = 0
    while front_is_clear():
        move()
        steps += 1
    return steps

def find_the_mid(is_done=True):
    total_length = length()
    turn_around()
    for i in range(int(total_length / 2)):
        move()
    if is_done:
        put()
        done()

find_the_mid(False)
turn_right()
find_the_mid(True)






"""